package com.task5.entity;

public class SOrder {
	private String sid;
	private double totalPrice;
	private int totalNum;
	private String saddress;
	private String stelphone;
	private int uid;
	
	public SOrder() {
	}
	
	public SOrder(String sid, double totalPrice, int totalNum, String saddress, String stelphone,int uid) {
		this.sid = sid;
		this.totalPrice = totalPrice;
		this.totalNum = totalNum;
		this.saddress = saddress;
		this.stelphone = stelphone;
		this.uid = uid;
	}

	public String getPKName() {
		return "sid";
	}
	
	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public int getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}

	public String getSaddress() {
		return saddress;
	}

	public void setSaddress(String saddress) {
		this.saddress = saddress;
	}

	public String getStelphone() {
		return stelphone;
	}

	public void setStelphone(String stelphone) {
		this.stelphone = stelphone;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Order [sid=");
		builder.append(sid);
		builder.append(", totalPrice=");
		builder.append(totalPrice);
		builder.append(", totalNum=");
		builder.append(totalNum);
		builder.append(", saddress=");
		builder.append(saddress);
		builder.append(", stelphone=");
		builder.append(stelphone);
		builder.append(", uid=");
		builder.append(uid);
		builder.append("]");
		return builder.toString();
	}
}
